load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "tblsession",
    srcs = ["table.go"],
    importpath = "github.com/pingcap/tidb/pkg/table/tblsession",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/expression/exprctx",
        "//pkg/infoschema/context",
        "//pkg/meta/autoid",
        "//pkg/meta/model",
        "//pkg/sessionctx",
        "//pkg/sessionctx/stmtctx",
        "//pkg/sessionctx/variable",
        "//pkg/table/tblctx",
        "//pkg/util/intest",
    ],
)

go_test(
    name = "tblsession_test",
    timeout = "short",
    srcs = ["table_test.go"],
    flaky = True,
    deps = [
        ":tblsession",
        "//pkg/infoschema",
        "//pkg/meta/model",
        "//pkg/sessionctx/variable",
        "//pkg/table",
        "//pkg/table/tables",
        "//pkg/util/mock",
        "@com_github_stretchr_testify//require",
    ],
)
